package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

import java.sql.Time;
import java.util.Date;

/**
 * @author: louk
 * @Description:班次信息表Pojo
 * @date: 2019/11/15 13:34
 *
 */
public class Classe  extends BasePojo {
    /**
     * 班次id
     */
    private Integer classeId;
    /**
     * 班次名称
     */
    private String classeName;
    /**
     * 工位id
     */
    private Integer stationId;
    /**
     * 开始时间
     */
    private String startDate;
    /**
     * 结束日期
     */
    private String endDate;

    /**
     * 工作时长
     */
    private Double workHour;
    /**
     * 产线Id
     */
    private Integer productlineId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /**
     * @author: louk
     * @Description:以上是数据库定义字段,以下是衍生字段
     * @date: 2019/11/15 13:35
     *
     */
    private String dataStateName;
    /**
     * 产线名称
     */
    private String productlineName;

    /**
     * 工位名称
     */
    private String stationName;

    public String getDataStateName() {
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public Integer getClasseId() {
        return classeId;
    }

    public void setClasseId(Integer classeId) {
        this.classeId = classeId;
    }

    public String getClasseName() {
        return classeName;
    }

    public void setClasseName(String classeName) {
        this.classeName = classeName== null ? null : classeName.trim().replace(" ","");
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Double getWorkHour() {
        return workHour;
    }

    public void setWorkHour(Double workHour) {
        this.workHour = workHour;
    }

    public Integer getProductlineId() {
        return productlineId;
    }

    public void setProductlineId(Integer productlineId) {
        this.productlineId = productlineId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark== null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getProductlineName() {
        return productlineName;
    }

    public void setProductlineName(String productlineName) {
        this.productlineName = productlineName;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public Classe() {
    }

    public Classe(String classeName, String startDate, Double workHour, String productlineName) {
        this.classeName = classeName;
        this.startDate = startDate;
        this.workHour = workHour;
        this.productlineName = productlineName;
    }
}